﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace NapThe
{
    public partial class Report : UserControl
    {
        public static string contentOfMessage = "";
        public static string anchor = "";
        NapXu napxu;
        Grid MainLayoutRoot;
        public Report(Grid MainLayoutRoot, NapXu napxu)
        {
            InitializeComponent();
            this.MainLayoutRoot = MainLayoutRoot;
            this.MainLayoutRoot.Children.Add(this);
            this.napxu = napxu;
        }

       

        
        public void OnNavigatedTo()
        {
            this.Visibility = Visibility.Visible;
            textBlock2.TextAlignment = TextAlignment.Center;
            textBlock2.Text = contentOfMessage;
           
        }

        public void OKClick(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Collapsed;
            NapTheDienThoaiController n = new NapTheDienThoaiController();
            n.process(napxu.gamepage);
        }
    }
}
